package com.miracle.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 返回结果实体类
 * @author : miracle
 * @version : 1.0.0
 * @date : 2021/3/20 11:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {

    /**
     * 返回码
     */
    private Integer code;
    /**
     * 返回消息
     */
    private String message;
    /**
     * 返回数据
     */
    private T data;

    public Result(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
